<?php defined("ROOT") or exit("access deny")?> 
<!DOCTYPE HTML>
<html>
	<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<title><?php YC::html(YC::make("Model")->M("nosql_by_field","sitename"));?></title>
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="description" content="
	<?php YC::html(YC::make("Model")->M("nosql_by_field","description"));?>
	" />
	<meta name="keywords" content="
	<?php YC::html(YC::make("Model")->M("nosql_by_field","keywords"));?>
	" />
	<meta name="author" content=" 
	<?php YC::html(YC::make("Model")->M("nosql_by_field","author"));?>
	" />
  	<!-- Facebook and Twitter integration -->
	<meta property="og:title" content=""/>
	<meta property="og:image" content=""/>
	<meta property="og:url" content=""/>
	<meta property="og:site_name" content=""/>
	<meta property="og:description" content=""/>
	<meta name="twitter:title" content="" />
	<meta name="twitter:image" content="" />
	<meta name="twitter:url" content="" />
	<meta name="twitter:card" content="" />

	<!-- <link href='https://fonts.googleapis.com/css?family=Work+Sans:400,300,600,400italic,700' rel='stylesheet' type='text/css'> -->
	
	<!-- Animate.css -->
	<link rel="stylesheet" href="<?php  YC::html(YC::get("ROOT")); ?>/src/default/css/animate.css">
	<!-- Icomoon Icon Fonts-->
	<link rel="stylesheet" href="<?php  YC::html(YC::get("ROOT")); ?>/src/default/css/icomoon.css">
	<!-- Bootstrap  -->
	<link rel="stylesheet" href="<?php  YC::html(YC::get("ROOT")); ?>/src/default/css/bootstrap.css">

	<!-- Magnific Popup -->
	<link rel="stylesheet" href="<?php  YC::html(YC::get("ROOT")); ?>/src/default/css/magnific-popup.css">

	<!-- Owl Carousel  -->
	<link rel="stylesheet" href="<?php  YC::html(YC::get("ROOT")); ?>/src/default/css/owl.carousel.min.css">
	<link rel="stylesheet" href="<?php  YC::html(YC::get("ROOT")); ?>/src/default/css/owl.theme.default.min.css">

	<!-- Theme style  -->
	<link rel="stylesheet" href="<?php  YC::html(YC::get("ROOT")); ?>/src/default/css/style.css">

	<!-- Modernizr JS -->
	<script src="<?php  YC::html(YC::get("ROOT")); ?>/src/default/js/modernizr-2.6.2.min.js"></script>
	<!-- FOR IE9 below -->
	<!--[if lt IE 9]>
	<script src="<?php  YC::html(YC::get("ROOT")); ?>/src/default/js/respond.min.js"></script>
	<![endif]-->

	</head>
	<body>
		
	<div class="gtco-loader"></div>
	
	<div id="page">
	<nav class="gtco-nav" role="navigation">
		<div class="gtco-container">
			<div class="row">
				<div class="col-xs-2">
				<!-----php输出------>
					<div id="gtco-logo"><a href="<?php  YC::html(YC::get("ROOT")); ?>">
					<?php YC::html(YC::make("Model")->M("nosql_by_field","sitename"));?>
				<!-----php输出------>
					</a></div>
				</div>
				<div class="col-xs-8 text-center menu-1">
 
					<ul>
						<li class="active"><a href="<?php  YC::html(YC::get("ROOT")); ?>">Home</a></li>
						<!-----------数据插入------------->
						<?php

								$top_menu = YC::make("Model")->M("menu_list","top");
								foreach($top_menu as $v){

						?>
						<li><a href="<?php YC::html($v["url"])?>"><?php YC::html($v["name"])?></a></li>
					 	<?php }?>
						<!-----------数据插入-------------> 
					</ul>
				</div>
				<div class="col-xs-2 text-right hidden-xs menu-2">
					<ul>
						<li class="btn-cta"><a href="#"><span>登陆</span></a></li>
					</ul>
				</div>
			</div>
			
		</div>
	</nav> 
	<?php
		if(!isset($_GET["id"]) || empty($_GET["id"])){
			YC::location(YC::get("ROOT"));
		}
		$i_id = $_GET["id"];
		$data = YC::make("Model")->M("article_by_id",$i_id);
		if(empty($data)){
			YC::location(YC::get("ROOT"));
		}
	?>
	
	<header id="gtco-header" class="gtco-cover gtco-cover-sm" role="banner" style="background-image:url(<?php YC::html($data["picture"]);?>);">

		<div class="gtco-container">
			<div class="row">
				<div class="col-md-8 col-md-offset-2 text-center">
					<div class="display-t">
						<div class="display-tc animate-box" data-animate-effect="fadeIn">
							<h1><?php YC::html($data["name"]);?></h1>
							<h2><?php YC::html($data["info"]);?></h2>
						</div>
					</div>
				</div>
			</div>
		</div>
	</header>
	
 <div class="gtco-section">
		<div class="gtco-container">
			<div class="row animate-box">
				<div class="col-md-8 col-md-offset-2 text-center gtco-heading gtco-heading-sm">
					<h2><?php YC::html($data["category"]);?></h2>
				</div>
			</div>
			<div class="row animate-box">
				<div class="col-md-6">
					<?php YC::html($data["content"]);?>
					
				</div>
				<div class="col-md-6">
					<p><?php YC::html($data["memo"]);?></p>
					<p><a href="<?php YC::html($data["url"]);?>" class="btn btn-primary"><?php YC::html($data["memo1"]);?></a></p>
				</div>
			</div>
		</div>
	</div>

 
 <div class="gtco-cover gtco-cover-sm" style="background-image:url(<?php  YC::html(YC::get("ROOT")); ?>/src/default/images/img_bg_3.jpg);">
		<div class="overlay"></div>
		<div class="gtco-container">
			<div class="row">
				<div class="col-md-8 col-md-offset-2 text-center">
					<div class="display-t">
						<div class="display-tc animate-box" data-animate-effect="fadeIn">
							<h1>Keep it simple</h1>
							<h2>Free html5 templates Made</h2>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	

	<footer id="gtco-footer" role="contentinfo">
		<div class="gtco-container">
			<div class="row row-pb-md">
				<div class="col-md-4 gtco-widget">
					<h3>The Company</h3>
					<p>Facilis ipsum reprehenderit nemo molestias. Aut cum mollitia reprehenderit. Eos cumque dicta adipisci architecto culpa amet.</p>
					<p><a href="#">Learn More</a></p>
				</div>
				<div class="col-md-2 col-sm-4 col-xs-6 col-md-push-1">
					<ul class="gtco-footer-links">
						<li><a href="#">About</a></li>
						<li><a href="#">Help</a></li>
						<li><a href="#">Contact</a></li>
						<li><a href="#">Terms</a></li>
						<li><a href="#">Meetups</a></li>
					</ul>
				</div>

				<div class="col-md-2 col-sm-4 col-xs-6 col-md-push-1">
					<ul class="gtco-footer-links">
						<li><a href="#">Shop</a></li>
						<li><a href="#">Privacy</a></li>
						<li><a href="#">Testimonials</a></li>
						<li><a href="#">Handbook</a></li>
						<li><a href="#">Held Desk</a></li>
					</ul>
				</div>

				<div class="col-md-2 col-sm-4 col-xs-6 col-md-push-1">
					<ul class="gtco-footer-links">
						<li><a href="#">Find Designers</a></li>
						<li><a href="#">Find Deelopers</a></li>
						<li><a href="#">Teams</a></li>
						<li><a href="#">Advertise</a></li>
						<li><a href="#">API</a></li>
					</ul>
				</div>
			</div>

			<div class="row copyright">
				<div class="col-md-12">
					<p class="pull-left">
						<small class="block">Copyright &copy; 2016.Company name All rights reserved.</small>
					</p>
					<p class="pull-right">
						<ul class="gtco-social-icons pull-right">
							<li><a href="#"><i class="icon-twitter"></i></a></li>
							<li><a href="#"><i class="icon-facebook"></i></a></li>
							<li><a href="#"><i class="icon-linkedin"></i></a></li>
							<li><a href="#"><i class="icon-dribbble"></i></a></li>
						</ul>
					</p>
				</div>
			</div>

		</div>
	</footer>
	</div>

	<div class="gototop js-top">
		<a href="#" class="js-gotop"><i class="icon-arrow-up"></i></a>
	</div>
	
	<!-- jQuery -->
	<script src="<?php  YC::html(YC::get("ROOT")); ?>/src/default/js/jquery.min.js"></script>
	<!-- jQuery Easing -->
	<script src="<?php  YC::html(YC::get("ROOT")); ?>/src/default/js/jquery.easing.1.3.js"></script>
	<!-- Bootstrap -->
	<script src="<?php  YC::html(YC::get("ROOT")); ?>/src/default/js/bootstrap.min.js"></script>
	<!-- Waypoints -->
	<script src="<?php  YC::html(YC::get("ROOT")); ?>/src/default/js/jquery.waypoints.min.js"></script>
	<!-- Carousel -->
	<script src="<?php  YC::html(YC::get("ROOT")); ?>/src/default/js/owl.carousel.min.js"></script>
	<!-- countTo -->
	<script src="<?php  YC::html(YC::get("ROOT")); ?>/src/default/js/jquery.countTo.js"></script>
	<!-- Magnific Popup -->
	<script src="<?php  YC::html(YC::get("ROOT")); ?>/src/default/js/jquery.magnific-popup.min.js"></script>
	<script src="<?php  YC::html(YC::get("ROOT")); ?>/src/default/js/magnific-popup-options.js"></script>
	<!-- Main -->
	<script src="<?php  YC::html(YC::get("ROOT")); ?>/src/default/js/main.js"></script>

	</body>
</html>

